﻿
namespace EasyNet.Solr.Commons.Params
{
    /// <summary>
    /// Parameters used for distributed search.
    /// </summary>
    public struct ShardParams
    {
        /// <summary>
        /// the shards to use (distributed configuration)
        /// </summary>
        public const string SHARDS = "shards";

        /// <summary>
        /// per-shard start and rows 
        /// </summary>
        public const string SHARDS_ROWS = "shards.rows";
        public const string SHARDS_START = "shards.start";

        /// <summary>
        /// IDs of the shard documents
        /// </summary>
        public const string IDS = "ids";

        /// <summary>
        /// whether the request goes to a shard
        /// </summary>
        public const string IS_SHARD = "isShard";

        /// <summary>
        /// query type for shard requests
        /// </summary>
        public const string SHARDS_QT = "shards.qt";
    }
}
